const adminServer=require('../dao/adminServer')

// 对机器人发起消息
exports.isAdmin=(req,res)=>{ 
    let {body} =req  
    // res.send("机器人消息userId,message")
    adminServer.isAdmin(body,res)
}
exports.register=(req,res)=>{ 
    let {body} =req 
    // console.log(body,"body");
    // res.send("机器人消息userId,message")
    adminServer.register(body,res)
}
exports.addAdmin=(req,res)=>{ 
    let {body} =req 
    // console.log(body,"body");
    // res.send("机器人消息userId,message")
    adminServer.addAdmin(body,res)
}
exports.getAdminList=(req,res)=>{ 
    let {body} =req 
    // console.log(body,"body");
    // res.send("机器人消息userId,message")
    adminServer.getAdminList(body,res)
}
exports.deleteAdmin=(req,res)=>{ 
    let {body} =req 
    // console.log(body,"body");
    // res.send("机器人消息userId,message")
    adminServer.deleteAdmin(body,res)
}
exports.getAdminInfo=(req,res)=>{ 
    let {body} =req 
    // console.log(body,"body");
    // res.send("机器人消息userId,message")
    adminServer.getAdminInfo(body,res)
}
exports.getChartDate=(req,res)=>{ 
    let {body} =req 
    // console.log(body,"body");
    // res.send("机器人消息userId,message")
    adminServer.getChartDate(body,res)
}
exports.getPageUsers=(req,res)=>{ 
    let {body} =req  
    // res.send("机器人消息userId,message")
    adminServer.getPageUsers(body,res)
}
exports.deleteUser=(req,res)=>{ 
    let {body} =req 
    console.log(body,"body");
    // res.send("机器人消息userId,message")
    adminServer.deleteUser(body,res)
}
exports.updateUserDetail=(req,res)=>{ 
    let {body} =req 
    console.log(body,"body");
    // res.send("机器人消息userId,message")
    adminServer.updateUserDetail(body,res)
}